using Admin.NET.Core;
using SqlSugar;

namespace Admin.NET.Application.Entity.Business;

[SugarTable("BrandModel", "品牌型号")]
[SysTable]
public class BrandModel : EntityBase
{
	/// <summary>
	/// 类型，0电表，1水表，2空开
	/// </summary>
	public int? Type { get; set; }

	/// <summary>
	/// 品牌型号名称
	/// </summary>
	public string Name { get; set; }

	/// <summary>
	/// 协议编码code
	/// </summary>
	public string Code { get; set; }

	/// <summary>
	/// 计量类型，0后付费，1预付费
	/// </summary>
	public int MeteringType { get; set; }

	/// <summary>
	/// 相线类型，0单相、1三相三线、2三相四线
	/// </summary>
	public int PhaseLineType { get; set; }

	/// <summary>
	/// 安装类型，0导轨、1壁挂、2数显多功能仪表
	/// </summary>
	public int InstallType { get; set; }

	/// <summary>
	/// 大小，1p，2p，4p，7p，单位p
	/// </summary>
	public int Size { get; set; }

	/// <summary>
	/// 是否有继电器，开关，1有，0无
	/// </summary>
	public int HasGate { get; set; }

	/// <summary>
	/// 底数上限
	/// </summary>
	public decimal UpperLimitOfBase { get; set; }

	/// <summary>
	/// 通讯方式，04G，1蓝牙，2.RS485,3.wifi,4.lora
	/// </summary>
	public int CommunicationMode { get; set; }

	/// <summary>
	/// 拉闸指令
	/// </summary>
	public string? PowerOffCMD { get; set; }

	/// <summary>
	/// 合闸指令
	/// </summary>
	public string? PowerOnCMD { get; set; }

	/// <summary>
	/// 清零指令
	/// </summary>
	public string? ClearCMD { get; set; }

	/// <summary>
	/// 互感类型，0直通表。1电流互感，2电压互感
	/// </summary>
	public int? MutualInductanceType { get; set; }

	/// <summary>
	/// 协议插件id
	/// </summary>
	public long AggrementPluginId { get; set; }

	[SugarColumn(ColumnDataType = "text")]
	public string? Remark { get; set; }
}
